<template>
<div>
	<layout>
	<div class="aaaa">
	<h1> 部门/院系管理</h1>
	</div>
	<div class="aadd">
		<div></div>
		<div></div>
		<div></div>

	</div>
	<div class="button">
	<el-button type="primary">新增部门/院系</el-button>
	</div>

	<div class="Four">
	<el-table
    :data="tableData"
    stripe
    style="width:100%">
    <el-table-column
      fixed
      prop="date"
      label="部门编号"
      width="150">
    </el-table-column>
    <el-table-column
      prop="name"
      label="部门名称"
      width="270">
    </el-table-column>
    <el-table-column
      fixed="right"
      label="操作"
      width="150">
      <template scope="scope">
        <el-button @click="handleClick" type="text">编辑</el-button>
        <el-button type="text">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
	</div>
	</layout>
  <img src="./assets/2.gif" width="350" height="300" style="margin-left:200px;margin-top:120px;">
</div>
</template>

<script>
	import Layout from './new.vue'
  import axios from 'axios'


  export default {
    data () {
      return {
        myData : ''
      }
    },
  components: {
    Layout
  },
  methods:{
    httpMy () {
      return axios.get('/api/department/list').then(function(r){
        console.log(r);
        return  JSON.stringify(r).toString();
        }).catch(function(error){
          console.log(error);
          });
    }
    
  },mounted () {
    
      let mv = this;
      // let  p = {
      //  url: '/api/users/list'
      // };
        axios.get('/api/users/list').then(function(r){
          console.log(r.data.errmsg);
          mv.myData = r.data.errmsg;
        }).catch(function(error){
          console.log(error);
          });
      
  }
 }
</script>
<style >
	.aadd{
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    border: 1px solid #dfe6ec;
    font-size: 14px;
    color: #1f2d3d
	},
	.aaaa{
	padding: 11px 19px;
	font-size: 16px;
	border-radius: 4px
	

	}
	.button{
	padding: 11px 19px;
	font-size: 16px;
	border-radius: 4px

	}
	.Four{
	width:60%; 
	padding: 11px 19px;
	font-size: 16px;
	border-radius: 4px
	}


</style>